<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui">
	<br />
	<h:outputText value="【信息request.contextPath】#{request.contextPath}" />
	<br />
	<h:outputText
		value="【信息】#{facesContext.externalContext.requestScheme}://#{facesContext.externalContext.requestServerName}:#{facesContext.externalContext.requestServerPort}#{facesContext.externalContext.requestContextPath}/1.jpg" />
	<br />
	<h:outputText value="【信息】#{facesContext.externalContext.requestScheme}" />
	<br />
	<h:outputText
		value="【信息】#{facesContext.externalContext.requestServerName}" />
	<br />
	<h:outputText
		value="【信息】#{facesContext.externalContext.requestServerPort}" />
	<br />
	<h:outputText
		value="【信息】#{facesContext.externalContext.requestContextPath}" />
	<br />
	<h:outputText
		value="【信息】#{facesContext.externalContext.requestPathInfo}" />
	<br />
	<h:outputText
		value="【信息】#{facesContext.externalContext.requestServletPath}" />
	<br />
	<h:outputText
		value="【信息】#{facesContext.externalContext.applicationContextPath}" />
	<br />


	<p:graphicImage library="images" name="ajaxloadingbar.gif" />
	<br />
	<img src="#{request.contextPath}/resources/images/mainflow.jpg" />
	<br />
	<img src="#{request.contextPath}/resources/images/ajaxloadingbar.gif" />
	<br />

	<!-- 使用虚拟路径资源 -->
	<p>使用虚拟路径资源</p>
	<img src="#{request.contextPath}/1.jpg"
		style="width: 200px; height: 120px;" />
	<h:graphicImage url="http://localhost:8080/bmepp/2.jpg"
		style="width:200px;height:120px;" title="Show Image"
		alt="Description goes here" />
	<h:graphicImage style="width:200px;height:120px;" title="Show Image"
		alt="Description goes here" 
		value="#{facesContext.externalContext.requestScheme}://#{facesContext.externalContext.requestServerName}:#{facesContext.externalContext.requestServerPort}#{facesContext.externalContext.requestContextPath}/1.jpg" />
	<p:graphicImage style="width:200px;height:120px;" title="Show Image" alt="Description goes here" 
		value="#{facesContext.externalContext.requestScheme}://#{facesContext.externalContext.requestServerName}:#{facesContext.externalContext.requestServerPort}#{facesContext.externalContext.requestContextPath}/2.jpg" />
	<p:graphicImage style="width:200px;height:120px;" title="Show Image" alt="Description goes here" 
		url="/2.jpg" />
	<p:graphicImage style="width:200px;height:120px;" title="Show Image" alt="Description goes here" 
		value="/3.jpg" />

	<p>微信提示信息</p>
	<h:form id="frm">
		<p:growl id="msgs" showDetail="true" />	
		<p:commandButton value="Weixin" icon="fa fa-fw fa-download" 
		action="#{nullTestMB.weixinAction}" update="frm"/>
	</h:form>
</ui:composition>
